import Vue from 'vue'
import App from './App.vue'
import vuex from 'vuex'
import ElementUI, { Button, Checkbox, Container, DatePicker, Select, Table } from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
import ElTableInfiniteScroll from "el-table-infinite-scroll";
import VueRouter from 'vue-router'
import router from './router'
Vue.config.productionTip = false
Vue.use(vuex)
Vue.use(ElementUI)
Vue.use(ElTableInfiniteScroll)
Vue.component('el-date-picker',DatePicker);
Vue.component('el-button',Button);
Vue.component('el-table',Table);
Vue.component('el-container',Container)
Vue.component('el-checkbox',Checkbox)
Vue.component('el-select',Select)
Vue.use(VueRouter)


new Vue({
  el:'#app',
  render: h => h(App),
  router:router,
  beforeCreate(){
    Vue.prototype.$bus=this
  }
})